package github.ziwukun.jsonql.orm;

import cn.hutool.core.util.StrUtil;

/**
 * 关系映射断言工具类
 * @author Hugo.Yu
 */
class OrmAssert {
	
	public static void notBlank(Object val,String temp,String... vars) {
		if(StrUtil.isBlankIfStr(val)) {
			throw new OrmException(temp, vars);
		}
	}
	
	public static void isTrue(boolean bol,String temp,String... vars) {
		if(!bol) {
			throw new OrmException(temp, vars);
		}
	}
}
